package com.peenongsaban.freelance.action;

import com.opensymphony.xwork2.ActionSupport;
import com.peenongsaban.freelance.model.JobPageModel;
import com.peenongsaban.freelance.service.JobPageService;

public class JobPageAction extends ActionSupport {
	private static final long serialVersionUID = 1L;
	private JobPageModel model = new JobPageModel();

	public String showJobPage() {
		JobPageService service = new JobPageService();
		model.setListAptitubeType(service.getListAptitudeType());
		model.setListJobUrgent(service.getListJobUrgent());
		model.setListJobRecommended(service.getListJobRecommended());		
		return SUCCESS;
	}

	public JobPageModel getModel() {
		return model;
	}

	public void setModel(JobPageModel model) {
		this.model = model;
	}
}
